import request from '@/utils/request'

// 会员管理：添加申请
export function addMemberApply(data) {
	return request({
		url: '/member/add/noAuth',
		method: 'post',
		data: data
	})
}
export function addMemberApplySkipReview(data) {
	return request({
		url: '/member/add/noAuth/skip/review',
		method: 'post',
		data: data
	})
}

// 会员管理：删除
export function delMember(data) {
	return request({
		url: '/member/del',
		method: 'post',
		data: data
	})
}

// 会员管理：通过主键查询
export function getMemberByKey(params) {
	return request({
		url: '/member/getByKey/noAuth',
		method: 'get',
		params: params
	})
}

// 分页查询
export function getMemberPage(params) {
	return request({
		url: '/member/getPage/noAuth',
		method: 'get',
		params: params
	})
}

// 会员管理：审核
export function auditMember(data) {
	return request({
		url: '/member/audit',
		method: 'post',
		data: data
	})
}
